import request from '@/utils/request'

// 查询用户培训列表
export function listUser_training(query) {
  return request({
    url: '/system/user_training/list',
    method: 'get',
    params: query
  })
}

// 查询用户培训详细
export function getUser_training(userTrainingId) {
  return request({
    url: '/system/user_training/' + userTrainingId,
    method: 'get'
  })
}

// 新增用户培训
export function addUser_training(data) {
  return request({
    url: '/system/user_training',
    method: 'post',
    data: data
  })
}

// 修改用户培训
export function updateUser_training(data) {
  return request({
    url: '/system/user_training',
    method: 'put',
    data: data
  })
}

// 删除用户培训
export function delUser_training(userTrainingId) {
  return request({
    url: '/system/user_training/' + userTrainingId,
    method: 'delete'
  })
}
